Function Reference

_IEIsFrameSet

Checks to see if the specified Window contains a FrameSet.

#include <IE.au3>
_IEIsFrameSet ( ByRef $o_object )

 

Parameters

$o_object Object variable of an InternetExplorer.Application, Window or Frame object

 

Return Value

Success: Returns 1 if the object references a FrameSet page
Failure: Returns 0 and sets @ERROR
@Error: 0 ($_IEStatus_Success) = No Error
3 ($_IEStatus_InvalidDataType) = Invalid Data Type
@Extended: Contains invalid parameter number

 

Remarks

None.

 

Related

_IEFrameGetCollection

 

Example


; *******************************************************
; Example 1 - Display the frameset example, get frame collection,
;               check number of frames, display number of frames or iFrames present
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("frameset")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended
If $iNumFrames > 0 Then
    If _IEIsFrameSet ($oIE) Then
        MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
    Else
        MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
    EndIf
Else
    MsgBox(0, "Frame Info", "Page contains no frames")
EndIf